package a.f.d;

import a.c.ab;
import a.c.bb;
import a.c.d;
import a.c.k;
import a.c.w;
import a.c.x;
import a.f.d.a.ac;
import a.f.d.a.bc;
import a.f.d.a.hc;
import a.f.d.a.zb;
import a.f.o;

public class p
  implements fb, zb
{
  public static final Object a = new Object();
  public static boolean b;
  
  public int a(o paramo, x paramx, ab paramab)
  {
    int m = f.o;
    int k = f.n;
    if ((m != 0) || (paramo.n())) {
      return 0;
    }
    bb[] arrayOfbb = null;
    k localk = paramo.c(a);
    bb localbb = new bb();
    if (localk != null)
    {
      localObject1 = paramo.v();
      do
      {
        if (!((w)localObject1).e()) {
          break;
        }
        if (k != 0) {
          break label123;
        }
        if (localk.getBool(((w)localObject1).d())) {
          localbb.add(((w)localObject1).d());
        }
        ((w)localObject1).f();
      } while (k == 0);
    }
    if ((m == 0) && (localbb.isEmpty()))
    {
      label123:
      localObject1 = a.a.m.a(paramo);
      int i = 0;
      label233:
      do
      {
        if (i >= localObject1.length) {
          break;
        }
        if ((m == 0) && (k != 0)) {
          break label262;
        }
        Object localObject2 = localObject1[i];
        int j = 0;
        w localw = localObject2.l();
        do
        {
          if (!localw.e()) {
            break;
          }
          if (k != 0) {
            break label233;
          }
          if (localw.d().d() == 0)
          {
            localbb.add(localw.d());
            j = 1;
          }
          localw.f();
        } while (k == 0);
        if (m == 0)
        {
          if (j == 0) {
            localbb.add(localObject2.m());
          }
          i++;
        }
      } while (k == 0);
    }
    label262:
    arrayOfbb = b.a(paramo, localbb, paramx);
    paramab.clear();
    Object localObject1 = paramo.w();
    do
    {
      if (!((a.c.m)localObject1).e()) {
        break;
      }
      d locald = ((a.c.m)localObject1).a();
      if ((m == 0) && (k != 0)) {
        break label356;
      }
      if (paramx.getInt(locald.e()) > paramx.getInt(locald.f()))
      {
        paramab.c(locald);
        paramo.e(locald);
      }
      ((a.c.m)localObject1).f();
    } while (k == 0);
    label356:
    return arrayOfbb.length;
  }
  
  public void a(o paramo, ac paramac, bc parambc)
  {
    new hc(this).a(paramo, paramac, parambc);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.d.p

 * JD-Core Version:    0.7.0.1

 */